home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Musik / Misc / Amster / Source / include / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-01  |  2.2 KB  |  108 lines

  1. /*
  2. ** Preferences Header
  3. */
  4.  
  5. #include <sys/types.h>
  6.  
  7. #include "include/mui.h"
  8.  
  9. #ifndef AMSTER_PREFS_H
  10. #define AMSTER_PREFS_H
  11.  
  12. extern struct prefsdata *prf;
  13.  
  14. struct prefsdata {
  15.     /* user */
  16.     char *user;
  17.     char *pass;
  18.     char *dlpath;
  19.     char *email;
  20.     int link;
  21.     int regflag;
  22.     /* options */
  23.     int clrlist;
  24.     int fullpath;
  25.     int autocon;
  26.     int askfile;
  27.     int autoadd;
  28.     int autosave;
  29.     int AutoCleanup;
  30.     int NameLength;
  31.     /* arexx */
  32.     char *scripts[8];
  33.     char *sounds[8];
  34.     /* advanced */
  35.     char *mainserver;
  36.     char *server;
  37.     char *napvers;
  38.     int port;
  39.     int DownloadQueueLimit;
  40.     int DownloadTaskPri;
  41.     int UploadQueueLimit;
  42.     int UploadTaskPri;
  43.     int QueueRetries;
  44.     int QueueDelay;
  45.     /* startup */
  46.     int noiconpanel;
  47.     int lamps;
  48.     int ServerList;
  49.     /* search */
  50.     int speedqual, speedval;
  51.     int bitratequal, bitrateval;
  52.     int freqqual, freqval;
  53.     int max;
  54. };
  55.  
  56. enum {
  57.     PRFE_STARTUP,
  58.     PRFE_EXIT,
  59.     PRFE_CONNECT,
  60.     PRFE_DISCONNECT,
  61.     PRFE_DLFINISH,
  62.     PRFE_ULFINISH,
  63.     PRFE_DLERROR,
  64.     PRFE_PLAYMP3
  65. };
  66.  
  67. struct prfdata {
  68.     u_long *UserString, *PasswordString, *EMailString, *DownloadPathString, *LinkSpeedCycle;
  69.     u_long *ClearListToggle, *AutoConnectToggle, *AskFileToggle, *AutoAddToggle, *AutoSaveToggle, *AutoCleanupToggle, *CM_ServerList;
  70.     u_long *CY_ServerList, *LampCycle, *ST_NameLength;
  71.     u_long *EventList, *EventScriptString, *EventSoundString;
  72.     u_long *MetaServerString, *ServerString, *PortString, *FirewallToggle;
  73.     u_long *DownloadQueueSlider, *UploadQueueSlider;
  74.     u_long *DownloadPriSlider, *UploadPriSlider;
  75.     u_long *ST_QueueRetries, *ST_QueueDelay;
  76. /*    u_long *VersionString;*/
  77.     int lastitem;
  78. };
  79.  
  80. struct QueueData
  81. {
  82.     char buf[21];
  83. };
  84.  
  85. MUIF prf_dispatch(REG(a0) struct IClass *cl,REG(a2) Object *obj,REG(a1) Msg msg);
  86.  
  87. #define PRF_OPEN       0x2001
  88. #define PRF_CANCEL     0x2002
  89. #define PRF_USE        0x2003
  90. #define PRF_SAVE       0x2004
  91. #define PRF_UPDATE     0x2005
  92. #define PRF_SAVEALL    0x2006
  93. #define PRF_TESTSND    0x2007
  94. #define PRF_FIREWALL   0x2008
  95. #define PRF_ENTRY      0x2009
  96. #define PRF_LASTSAVED  0x2010
  97. #define PRF_VALIDDELAY 0x2011
  98.  
  99. extern BOOL prf_load(char *fname);
  100. extern void prf_save(char *fname);
  101. extern void prf_setup(int argc, char *argv[]);
  102. extern void prf_event(int no);
  103.  
  104. #define PRF_DEFAULT_PORT 6699
  105.  
  106.  
  107. #endif    /* AMSTER_PREFS_H */
  108.